package com.cskaoyan.controller.wx;

import com.cskaoyan.bean.WxUserOrder;
import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.mapper.MarketUserMapper;

import com.cskaoyan.mapper.MarketUserMapper;

import com.cskaoyan.service.admin.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName WxUserController
 * @Description TODO
 * @Author by Lester
 * @Date 2022/11/22 16:06
 * @Version 1.0
 */
@RestController
@RequestMapping("/wx/user")
public class WxUserController {

    @Autowired
    UserService userService;

    @GetMapping("index")
    public BaseRespVo<WxUserOrder> order() {
        WxUserOrder order = userService.queryOrder();
        return BaseRespVo.ok(order);
    }
}
